﻿<html>
<head>
<title>Weapho</title>
<link rel="shortcut icon" href="../static/favicon.ico"> 
<link rel="Bookmark" href="../static/favicon.ico"> 
<style type="text/css">
	a {color:#2276BB;text-decoration:none}
	.wrapper {margin:1em auto;width:766px}
	.top {background:#FFF;}
	.footer {background:#FFF none repeat scroll 0 0;font-size:11px;line-height:1;margin-top:.7em;padding:8px 0;text-align:center;white-space:nowrap}
	#btn{-moz-border-radius:4px;-webkit-border-radius:4px;-x-system-font:none;background:#DDD;border-color:#DDD #DDD #CCC;border-style:solid;border-width:1px;color:#333;font-family:"Lucida Grande",Sans-serif;font-size:11px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:400;line-height:14px;margin:0;overflow:visible;padding:4px 8px 5px;text-shadow:1px 1px 0 #FFF;width:auto}
	label {font:"宋体" 10px}
</style>
<script language="javascript">
	function check()
	{
		if (document.getElementById("sip").value)
		{
			alert("已受理");
		}
	}
</script>
</head>
<body>
<div class="top">
	<div class="wrapper">
		<img src="../static/logo.gif" alt="Logo" width="120" height="43" longdesc="http://weather-to-phone.appsopt.com" />
	</div>
</div>
<div class="content">
	<div class="wrapper">
		<table cellspacing="10">
		<tbody>
			<tr>
				<td><img src="../static/blackberry8700.jpg" alt="blackberry" width=240 /></td>
				<td>
						<div class="right-top">
							<p>
								Weahter to Phone
							</p>
							<p>
								该平台基于Google App Engine云计算平台和Web.py框架搭建而成，抓取的天气信息源为http://qq.ip138.com/weather/。目前后台仅支持鄙人自定义的东莞和安阳两个地区，正考虑使用WSGI实施自定义城市订阅功能。抓取天气信息后调用PyFetion发送短信至用户手机。因使用飞信缘故，目前仅支持移动用户。
							</p>
							<p>
								成功订阅后，你将于每天17:30收到该天气预报短信。
							</p>
						</div>
						<hr />
						<form class="petition" method="post" id="petition" action="petition" onClick="check();form[this].submit">
						<table class="right-bottom">
							<tr><td>
								<label>手机号码： </label><input type="text" id="phone" name="phone" />
								<label>订阅城市：</label>
								<select name="city">
									% for city in citys:
									<option value=${city.cityname}>${city.cityname}
									% endfor
								</select>
							</td></tr>
							<tr><td>
								<label>留言：</label><textarea rows="3" cols="40" name="msg"></textarea>
							</td></tr>
							<tr><td>
								<input id="btn" type="submit" name="submit" value="申请"/>
							</td></tr>
							<tr><td><small>你将收到添加飞信好友的提示短信，加为好友才能成功订阅天气预报</small></td></tr>	
						</table>
						</form>
				</td>
			</tr>			
		</tbody>
	  </table>
	</div>
</div>

<div class="footer">
	<div class="wrapper">
		<!--&copy; 2010 <a href="http://blog.csdn.net/fatway" target="_blank">fatway</a>-->
			&copy; 2010 <a href="admin">fatway</a>
			<br />
			Powered by <a href="http://code.google.com/intl/zh-CN/appengine/" target="_blank">GoogleAppEngine</a> & <a href="http://webpy.org/">Web.py</a> & <a href="http://code.google.com/p/pytool" target="_blank">PyFetion</a>
	</div>
</div>
</body>
</html>

